package com.cargohu.aishouyu.member.service;

import com.cargohu.aishouyu.framework.page.Paging;
import com.cargohu.aishouyu.framework.service.BaseService;
import com.cargohu.aishouyu.member.dto.MemberSignAddDTO;
import com.cargohu.aishouyu.member.dto.MemberSignUpdateDTO;
import com.cargohu.aishouyu.member.entity.MemberSign;
import com.cargohu.aishouyu.member.req.MemberSignRequest;
import com.cargohu.aishouyu.member.resp.MemberSignDetailVo;
import com.cargohu.aishouyu.member.resp.MemberSignResponse;

import java.util.List;

/**
 * 用户签到记录 服务接口
 *
 * @author yww
 * @since 2023-11-29
 */
public interface MemberSignService extends BaseService<MemberSign> {

    /**
     * 添加用户签到记录
     *
     * @param memberSignAddDTO
     * @return
     * @throws Exception
     */
    boolean addMemberSign(MemberSignAddDTO memberSignAddDTO) throws Exception;

    /**
     * 修改用户签到记录
     *
     * @param memberSignUpdateDTO
     * @return
     * @throws Exception
     */
    boolean updateMemberSign(MemberSignUpdateDTO memberSignUpdateDTO) throws Exception;

    /**
     * 删除用户签到记录
     *
     * @param id
     * @return
     * @throws Exception
     */
    boolean deleteMemberSign(Long id) throws Exception;

    /**
     * 用户签到记录详情
     *
     * @param id
     * @return
     * @throws Exception
     */
    MemberSignDetailVo getMemberSignById(Long id) throws Exception;

    /**
     * 用户签到记录分页列表
     *
     * @param memberSignRequest
     * @return
     * @throws Exception
     */
    Paging<MemberSignResponse> getMemberSignList(MemberSignRequest memberSignRequest) throws Exception;

    /**
     * 获取用户本周签到记录
     *
     * @param memberId
     * @return
     * @throws Exception
     */
    List<Integer> getMemberWeekSignHistory(Long memberId) throws Exception;

}
